import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

import workletURL from '@/houdini/point?url'

import App from './App.tsx';

import './assets/styles/main.scss'

if ('paintWorklet' in CSS) {
  const url = new URL(workletURL, import.meta.url).href;
  await (CSS as any).paintWorklet.addModule(url);
}

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />
  </StrictMode>
);
